﻿@model MvcMusicStore.Models.Genre
@{
    ViewBag.Title = "Browse Albums";
}

<div>
    <h3><em>Browsing Genre: @Model.Name</em></h3>
    <ul id="album-list">
        @foreach (var album in Model.Albums)
        { 
            <li>
                <a href="@Url.Action("Details", new { id = album.AlbumId })">

                    <img alt="@album.Title" src="@album.AlbumArtUrl" />

                    <span>@album.Title</span>
                </a>
            </li> }
    </ul>
</div>
